<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    // 往JSP四大域对象中绑定数据
    request.setAttribute("req", "request");
    //request.setAttribute("user", "这是一个request用户对象");

    session.setAttribute("sess", "session");
    session.setAttribute("user", "这是一个session用户对象");

    application.setAttribute("appl", "application");
    application.setAttribute("user", "这是一个application用户对象");

    pageContext.setAttribute("pages", "pageContext");
    //pageContext.setAttribute("user", "这是一个pageContext用户对象");


%>
<h1>${pageScope.pages}</h1>
<h1>${requestScope.req}</h1>
<h1>${sessionScope.sess}</h1>
<h1>${applicationScope.appl}</h1>
<h1>${user}</h1>

</body>
</html>
